package com.wx.user.controller;

import com.baomidou.mybatisplus.extension.api.ApiController;
import com.baomidou.mybatisplus.extension.api.R;
import com.wx.commons.model.UserInfo;
import com.wx.user.service.UserInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("userInfo")
public class UserInfoController extends ApiController {

    @Autowired
    private UserInfoService userInfoService;

    @GetMapping
    public List<UserInfo> selectUserInfo(){
        return userInfoService.selectUserInfo();
    }
}
